﻿#region 命名空间

using WinnerCMS.BLL;
using WinnerCMS.Model;
using WinnerCMS.Model.Attribute;

#endregion

namespace WinnerCMS.WebUI.Admin.Common
{
    /// <summary>
    ///     Admin_SaveOK 的摘要说明。
    /// </summary>
    [Access]
    public partial class SaveOK : WebFactory.PageBase
    {
        protected Core ci;
        protected WinnerCMS.Model.Model mi;

        protected void Page_Load(object sender, System.EventArgs e)
        {
            this.mi = ModelManage.GetInfo(byte.Parse(Request["ModelId"]));
            this.ci = new CoreManage().GetBaseInfo(int.Parse(Request["ID"]));
            if (this.ci == null) return;
            var str = new CategoryManage().CategoryPath(this.ci.CategoryId);

            if (str.Length > 3)
            {
                str = str.Substring(3, str.Length - 3); //去掉最前面的" → "
            }
            this.SavePath.Text = str;
            this.SaveTitle.Text = this.ci.ContentTitle;
            this.SaveKey.Text = this.ci.Tags;
        }
    }
}